<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>句容机关网站管理后台</title>
        <link rel="stylesheet" href="../style/reset.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="../style/style.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="../style/fixed.css" type="text/css" />
        <link rel="stylesheet" href="../style/msgbox.css" type="text/css" />
        <link rel="stylesheet" href="../js-plugin/jquery-ui/jquery-ui.css" type="text/css" />
        <script type="text/javascript" src="../js-plugin/jquery-1.6.min.js">
        </script>
        <script type="text/javascript" src="../js-plugin/jquery-ui/jquery-ui.min.js">
        </script>
        <script type="text/javascript" src="../js-plugin/simpla.jquery.configuration.js">
        </script>
        <script type="text/javascript" src="../js-plugin/jquery.query-2.1.7.js">
        </script>
        <script type="text/javascript" src="../js-plugin/jquery.template.js">
        </script>
        <script src="../js-plugin/jquery.easy-confirm-dialog.js">
        </script>
        <script src="../js-plugin/tpl.js">
        </script>
        <script src="../js/interact/ElectronicList.js">
        </script>
    </head>
    <body>
        <div class="loadingbox clearfix">
        </div>
        <div id="main-content">
            <div class="content-box">
                <div class="content-box-header">
                    <h3>电子台账列表</h3>
                    <div class="bulk-actions align-right20">
						<a class="button" href="ElectronicEdit?id=-1">新增电子台账</a>
                    </div>
                    <div class="clear">
                    </div>
                </div>
                <div class="content-box-content">
                    <div class="tab-content default-tab">
                        <div class="notification attention png_bg" style="display:none">
                            <a href="#" class="close"><img src="/images/manage/icons/cross_grey_small.png" title="Close this notification" alt="close" /></a>
                            <div id="errormsg">错误信息</div>
                        </div>
                        <table class="datalist">
                            <thead>
                                <tr>
                                    <th>标题</th>
									<th>上传人</th>
                                    <th>上传时间</th>
									<!--<th width="60">点击数</th>-->
                                    <th width="130">管理</th>
                                </tr>
                            </thead>
                            <tbody>
                                <#list manager.electronicList(20) as electronic>
	                                <tr>
	                                    <td>${electronic.title}</td>
										<td>${electronic.author}</td>
	                                    <td>${electronic.postdate?date}</td>
	                                    <!--<td>${electronic.view}</td>-->
	                                    <td>
											<#if electronic.authorid == session.getAttribute("userid") 
												|| session.getAttribute("usertype") ==1 >
												<a class="button editBtn" href="ElectronicEdit?id=${electronic.id?c}">编辑</a>
	                                       		<a class="button deleteBtn" href="${electronic.id?c}">删除</a>
											<#else>
												<a class="button editBtn" href="ElectronicEdit?id=${electronic.id?c}">查看</a>
											</#if>
	                                    </td>
	                                </tr>
                                </#list>
                            </tbody>
                            <tfoot>
                                <tr>
                                    <td colspan="4">
                                        <div class="pagination">
                                            ${manager.getPaginator()} 
                                        </div>
                                        <div class="clear">
                                        </div>
                                    </td>
                                </tr>
                            </tfoot>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </body>
</html>
